package com.zdya.combatdocuments.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdya.combatdocuments.entity.Document;
import com.zdya.combatdocuments.entity.vo.DocumentVO;
import com.zdya.combatdocuments.entity.vo.PageQuery;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

public interface DocumentService extends IService<Document> {

    /**
     * @desc 查询文书列表
     * @param documentVO
     * @return 文书列表
     */
    Page<Document> queryDocs(DocumentVO documentVO, PageQuery pageQuery);

    /**
     * @desc 导出文书压缩包到指定路径
     * @param ids 主键id数组
     * @return
     */
   void exportDocsByIds(Long ids[], HttpServletResponse response) throws IOException;

    /**
     * @desc 查询预览文件路径
     * @param id 预览文件id
     * @return
     */
   Map<String, String> previewDoc(Long id);
}
